﻿// // ******************************************************************
// //       /\ /|       @file       Auto_Media.cs
// //       \ V/        @brief      await29
// //       | "")       @author     Await, 285283010@qq.com
// //       /  |
// //      /  \\        @Modified   2024-12-31 20:12
// //    *(__\_\        @Copyright  Copyright (c) , 2024-12-31 18:12 Await
// // ******************************************************************

using System.ComponentModel.DataAnnotations;

namespace AutomaticSubtitles.Service.DataAccess.Model;

public class Auto_Media : BaseModel
{
    public Auto_Media()
    {
        AutoSubtitles = new HashSet<Auto_Subtitle>();
    }

    public Auto_Media(string getId) : base(getId)
    {
        AutoSubtitles = new HashSet<Auto_Subtitle>();
    }

    public GlobalVariableEnumConfiguration.MediaEnum MediaType { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 详细地址
    /// </summary>
    public string Path { get; set; }

    /// <summary>
    /// 根目录
    /// </summary>
    public string MainRootDirFPath { get; set; }

    /// <summary>
    /// 上一次写入时间
    /// </summary>
    public DateTime? LastWriteTime { get; set; }

    /// <summary>
    /// 海报
    /// </summary>
    public string? PosterAddress { get; set; }

    /// <summary>
    /// 横屏
    /// </summary>
    public string? LandscapeAddress { get; set; }

    /// <summary>
    /// 电视剧的父级信息
    /// </summary>
    public string? ParentLevelId { get; set; }

    /// <summary>
    /// 每一集信息地址
    /// </summary>
    public string? InformationAddress { get; set; }

    /// <summary>
    /// 目录等级
    /// </summary>
    public int Leve { get; set; }

    /// <summary>
    /// 季度
    /// </summary>
    public int Quarter { get; set; }

    /// <summary>
    /// 是否圆盘
    /// </summary>
    public bool IsDisc { get; set; } = false;

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 大小
    /// </summary>
    public decimal Size { get; set; }

    public virtual ICollection<Auto_Subtitle> AutoSubtitles { get; set; }
}